﻿using System;
using System.Windows.Data;
using YKXiangQi.Enums;

namespace YKXiangQi.Converters
{
    public class ViewModeRibbonButtonCheckedConveter: IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var viewMode = (ViewMode) value;
            var param = (ViewMode) parameter;

            return viewMode == param;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
